package com.zg.autoform.web.req;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

@Data
@ApiModel(value = "新增模板附件入参", description = "新增模板附件入参")
public class AddTmplFileReq {
    /**
     * 文件地址
     */
    @ApiModelProperty(value = "文件地址")
    private String url;
    /**
     * 模版id
     */
    @ApiModelProperty(value = "模版id")
    @NotNull(message = "模版id不能为空")
    private Long tmplId;
    /**
     * 模版类型 excel  word 占位符
     */
    @ApiModelProperty(value = "模版类型 excel  word 占位符")
    @NotBlank(message = "模版类型不能为空")
    private String type;

    @ApiModelProperty(value = "排序")
    @NotNull(message = "排序不能为空")
    private Integer sort;

    /**
     * 附件名称
     */
    @ApiModelProperty(value = "附件名称")
    @NotBlank(message = "附件名称不能为空")
    private String name;
}
